package cn.qingyun.gis.modules.scenes.contant;

/**
 * 角色权限码
 * */
public enum IntentionTypeEnum {
    ZERO(0,"高质量发展"),
    ONE(1,"宽带"),
    TWO(2,"移动平台意向"),
    THREE(3,"FTTR"),
    FOUR(4,"普通卡号"),
    FIVE(5,"其他"),
    SIX(6,"专线"),
    SEVEN(7,"组网");

    /**
     * 商机编号
     */
    public Integer code;

    /**
     * 商机名称
     */
    public String value;

    IntentionTypeEnum(Integer code, String value) {
        this.code = code;
        this.value = value;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public static String getValueByCode(Integer codeStr) {
        for (IntentionTypeEnum intention : values()) {
            if (intention.getCode().equals(codeStr)) {
                return intention.getValue();
            }
        }
        return "";
    }
}
